package June02;

public class T01Cook extends T01Employee {
    public T01Cook() {
    }

    public T01Cook(String id, String name, double salary) {
        super(id, name, salary);
    }

    public String toString() {
        //直接调用父类的toString方法作为返回值
        return super.toString();

    }

    //该注释可以直接重写父类里的方法
    @Override
    public void work() {
        System.out.println("厨师在炒菜");
    }
}
